package storage

import "net/http"

func Handler(w http.ResponseWriter,r *http.Request){
	m:=r.Method
	switch m {
	case http.MethodPut:put(w,r);
	case http.MethodDelete:del(w,r)
	case http.MethodGet:get(w,r)
	}

}

func get(w http.ResponseWriter,r *http.Request){

}
func put(w http.ResponseWriter,r *http.Request){

}

func del(w http.ResponseWriter,r *http.Request){
}

func Http(){
	http.HandleFunc("/",Handler)
	err:=http.ListenAndServe(":8080",nil)
	if err!=nil{
		panic(err)
	}
}